﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("DCJDORDER", "DCJDORDER", new string[] { "ORDERID" })]
    [KnownType(typeof(DCJDOrder))]
    public class DCJDOrder : MB.Orm.Common.BaseModel
    {
        public DCJDOrder()
        {

        }
        //订单ID
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ORDERID", System.Data.DbType.Int64)]
        public int ORDERID { get; set; }
        //订单号
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ORDERCODE", System.Data.DbType.String)]
        public string ORDERCODE { get; set; }
        //商品总价
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("SUMPRICE", System.Data.DbType.Decimal)]
        public decimal SUMPRICE { get; set; }
        //商品数量
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSNUMBER", System.Data.DbType.Int64)]
        public int GOODSNUMBER { get; set; }
        //状态(0:无效，1有效)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("STATUS", System.Data.DbType.String)]
        public string STATUS { get; set; }
        //新增人编号
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("OPRNO", System.Data.DbType.String)]
        public string OPRNO { get; set; }
        //下单时间
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CREATEDATE", System.Data.DbType.DateTime)]
        public DateTime CREATEDATE { get; set; }
        //门店编号
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("THIRDSTORECODE", System.Data.DbType.String)]
        public string THIRDSTORECODE { get; set; }
        //第三方配送状态(0:未配送，1:配送中，2:已送达)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DISTRIBUTIONSTATUS", System.Data.DbType.String)]
        public string DISTRIBUTIONSTATUS { get; set; }
        //配送完成时间
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DELIVERYCONFIRMTIME", System.Data.DbType.DateTime)]
        public DateTime DELIVERYCONFIRMTIME { get; set; }
        //订单成交时间
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("PURCHASETIME", System.Data.DbType.DateTime)]
        public DateTime PURCHASETIME { get; set; }
        //订单时效类型(0:无时效;2:自定义时间;1:次日达;27:七小时达;24:六小时达;21:五小时达;18:四小时达;15:三小时达;12:两小时达;9:一小时达;6:半小时达;)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ORDERAGINGTYPE", System.Data.DbType.Int16)]
        public int ORDERAGINGTYPE { get; set; }
        //预计送达时间
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("PREDELIVERYTIME", System.Data.DbType.DateTime)]
        public DateTime PREDELIVERYTIME { get; set; }
        //买家账号
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("COSTUMER", System.Data.DbType.String)]
        public string COSTUMER { get; set; }
        //收货人名称
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RECEIVER", System.Data.DbType.String)]
        public string RECEIVER { get; set; }
        //收货人地址
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RECEIVERADDRESS", System.Data.DbType.String)]
        public string RECEIVERADDRESS { get; set; }
        //收货人区/县
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RECEIVERCOUNTRY", System.Data.DbType.String)]
        public string RECEIVERCOUNTRY { get; set; }
        //收货人镇
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RECEIVERTOWN", System.Data.DbType.String)]
        public string RECEIVERTOWN { get; set; }
        //收货人电话
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RECEIVERPHONE", System.Data.DbType.String)]
        public string RECEIVERPHONE { get; set; }
        //买家备注
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("REMARK", System.Data.DbType.String)]
        public string REMARK { get; set; }
        //第三方订单创建时间
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("JDORDERCREATETIME", System.Data.DbType.DateTime)]
        public DateTime JDORDERCREATETIME { get; set; }
        //收货人纬度
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RECEIVERLAT", System.Data.DbType.Decimal)]
        public decimal RECEIVERLAT { get; set; }
        //收货人经度
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("RECEIVERLNG", System.Data.DbType.Decimal)]
        public decimal RECEIVERLNG { get; set; }
        //订单来源(传来源简写如JD：京东)
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ORDERSOURCE", System.Data.DbType.String)]
        public string ORDERSOURCE { get; set; }
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("THIRDDISORDER", System.Data.DbType.String)]
        public string THIRDDISORDER { get; set; }
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("THIRDDISPRICE", System.Data.DbType.Decimal)]
        public Decimal THIRDDISPRICE { get; set; }
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DISTRIBUTIONTYPE", System.Data.DbType.String)]
        public String DISTRIBUTIONTYPE { get; set; }



        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DCJDOrderDetails", System.Data.DbType.String)]
        public List<DCJDOrderDetail> DCJDOrderDetails { get; set; }


    }
}
